<extend name="Index/index"/>

<block name="content">
    <!--<div class="view-product" style="margin-top: 50px">-->
    <div class="info-center">
        <div class="manage-head">
            <h6 class="padding-left manage-head-con">{{$title}}</h6>
        </div>
        <a href="{{$prev}}" class="layui-btn layui-btn-normal" style="margin: 20px 0 0 20px">返回上一页</a>
        <div class="layui-container" style="margin-top: 20px">
            <div class="layui-row">
                <!--<div class="demoTable">-->
                    <!--<a href="{{$prev}}" class="layui-btn layui-btn-normal">返回上一页</a>-->
                <!--</div>-->
                <div class="layui-col-md7">
                    <form class="layui-form" action="{{:U('Banner/saveEditBanner')}}" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="id" value="{{$bannerInfo.id}}">
                        <div class="layui-form-item">
                            <label class="layui-form-label">图片名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="name"  autocomplete="off" class="layui-input"lay-verify="required" value="{{$bannerInfo.name}}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">宽</label>
                            <div class="layui-input-inline">
                                <input type="number" name="width"  autocomplete="off" class="layui-input"lay-verify="required" value="{{$bannerInfo.width}}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">高</label>
                            <div class="layui-input-inline">
                                <input type="number" name="height"  autocomplete="off" class="layui-input"lay-verify="required" value="{{$bannerInfo.height}}">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">是否显示</label>
                            <div class="layui-input-block">
                                <input type="radio" name="is_show" value="0" title="隐藏" {{$bannerInfo['is_show']==0 ? "checked" : ""}}>
                                <input type="radio" name="is_show" value="1" title="显示" {{$bannerInfo['is_show']==1 ? "checked" : ""}}>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit >立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </form>

                </div>
            </div>
        </div>
        <script>
            //Demo
            layui.use('form', function(){
                var form = layui.form;

                //监听提交
                form.on('submit(formDemo)', function(data){
                    layer.msg(JSON.stringify(data.field));
                    return false;
                });
            });

        </script>

    </div>
    <!--</div>-->

</block>